﻿package rmhc.api.dataflow
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;

	public class UserInfo
	{
		public static const FEMALE:int = 1;
		public static const MALE:int = 2;
		
		public var uid:String;
		//public var thumb:BitmapData;
		public var thumbSrc:String;
		public var firstname:String;
		public var lastname:String;
		public var nickname:String;
		public var gender:int;
		
		/*public function UserInfo()
		{
		}*/
		
		public function get name():String
		{
			return firstname + /*( nickname != null ? " " + nickname : "" ) + */( lastname != null ? " " + lastname : "" );
		}
		public function toString():String
		{
			return "[UserInfo: uid = "+uid+", firstname = "+firstname+", lastname = "+lastname+", nickname = "+nickname+"]"
		}
		/*public function getMainPhoto( callback:Function ):void
		{
			//ApiWrapper.api.getUserAlbums( on
		}*/
	}
}